package com.example.liunanxin.lnx226ordering.retrofitservice;



import com.example.liunanxin.lnx226ordering.beans.CollectBean;
import com.example.liunanxin.lnx226ordering.beans.UserBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface CollectService {
    // 收藏/取消收藏店铺
    @GET("userCollectShop.do")
    Call<UserBean> doCollectShop(@Query("user_id") int user_id,
                                 @Query("shop_id") int shop_id);

    //收藏/取消收藏菜谱
    @GET("userCollectFood.do")
    Call<UserBean> doCollectFood(@Query("user_id") int user_id,
                                 @Query("food_id") int food_id);
    //判断是否收藏 flag=0店铺 flag=1菜谱
    @GET("isCollected.do")
    Call<UserBean> isCollected(@Query("user_id") int user_id,
                               @Query("shop_food_id") int shop_food_id,
                               @Query("flag") int flag);
    //获取收藏列表  flag=0店铺 flag=1菜谱
    @GET("getAllUserCollection.do")
    Call<List<CollectBean>> getCollectList(@Query("user_id") int user_id,
                                           @Query("flag") int flag);
}
